package com.jzcn.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jzcn.common.base.BaseDomain;
import io.swagger.models.auth.In;
import lombok.Data;

import java.util.Date;

@Data
@TableName("app_tool")
public class AppTool extends BaseDomain {

    private String title;

    private Integer fileId;

    private String description;

    private Long createUserId;

    private Integer categoryId;

    @TableField(fill = FieldFill.INSERT) // 新增执行
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE) // 新增和修改执行
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
